from flask import Flask
from flask import render_template

# import_name: 导入模块的名字，给Flask寻找静态资源用的。固定__name__
# static_url_path: 静态资源的路由 / + 'my_static'
# static_folder: 静态资源文件夹 my_static
# template_folder: 模板文件夹 my_template

app = Flask(__name__,
            static_url_path='/my_static',
            static_folder='my_static',
            template_folder='my_template')

@app.route('/')
def index():
    # return "hello world!"
    return render_template('d01_index.html')

if __name__=="__main__":
    app.run()